package com.zxc.judgeservice.codesandbox;


import com.zxc.oj.model.codesandbox.ExecuteCodeRequest;
import com.zxc.oj.model.codesandbox.ExecuteCodeResponse;
import lombok.RequiredArgsConstructor;
import lombok.extern.java.Log;


@Log
@RequiredArgsConstructor
public class CodeSandboxProxy implements CodeSandbox {

    private final CodeSandbox codeSandbox;

    @Override
    public ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest) {
        log.info("代码沙箱请求信息：" + executeCodeRequest.toString());
        ExecuteCodeResponse executeCodeResponse = codeSandbox.executeCode(executeCodeRequest);
        return executeCodeResponse;
    }
}
